/**
 * 
 */
package com.google.code.sip.ucenter.model;

import javax.persistence.Column;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Indexed;

/**
 * 系统参数实体类
 * 
 * @author Liuye
 * 
 */
@Entity(noClassnameStored = true)
@SuppressWarnings("serial")
@javax.persistence.Entity
@javax.persistence.Table(name = "settings")
public class Setting extends BaseEntity {
	public static final String HUOSHOW_ID_REGISTER_LEVEL = "huoshow_id_register_level";
	public static final String CREDIT_FORMULA = "credit_formula";
	public static final String CREDIT_TRANSFER = "credit_transfer";
	public static final String CREDIT_TAX = "credit_tax";
	public static final String CREDIT_TRANSFER_MIN_AMOUNT = "credit_transfer_min_amount";
	public static final String CREDIT_EXCHANGE_MIN_BALANCE = "credit_exchange_min_balance";
	public static final String CREDIT_CHARGE_RATIO = "credit_charge_ratio";
	public static final String CREDIT_CHARGE_MIN = "credit_charge_min";
	public static final String CREDIT_CHARGE_MAX = "credit_charge_max";
	public static final String CREDIT_CHARGE_MAX_PERMONTH = "credit_charge_max_permonth";
	public static final String AUTO_CREATE_FRIEND_GROUP = "auto_create_friend_group";

	public static final String GROUP_HUOSHOW_ID = "huoshow_id";
	public static final String GROUP_CREDIT = "credit";
	public static final String GROUP_FRIEND = "friend";

	/**
	 * 系统参数名称
	 */
	@Indexed(unique = true)
	private String name;
	/**
	 * 系统参数值
	 */
	private String value;

	/**
	 * 系统参数显示名称
	 */
	private String displayName;

	/**
	 * 显示顺序
	 */
	@Indexed()
	private Integer displayOrder;

	/**
	 * 描述信息
	 */
	private String description;

	/**
	 * 参数组
	 */
	@Indexed
	private String group;

	@Column(name = "name", length = 64, nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public Integer getDisplayOrder() {
		return displayOrder;
	}

	public void setDisplayOrder(Integer displayOrder) {
		this.displayOrder = displayOrder;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}
}
